/*    */ package com.zimbra.cs.account.callback;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.account.AttributeCallback;
/*    */ import com.zimbra.cs.account.Entry;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class WorkingHours
/*    */   extends AttributeCallback
/*    */ {
/*    */   public void preModify(CallbackContext context, String attrName, Object attrValue, Map attrsToModify, Entry entry)
/*    */     throws ServiceException
/*    */   {
/* 35 */     if (attrValue == null) {
/* 36 */       return;
/*    */     }
/* 38 */     if (!(attrValue instanceof String)) {
/* 39 */       throw ServiceException.INVALID_REQUEST(attrValue + " is a single-valued string", null);
/*    */     }
/* 41 */     String value = (String)attrValue;
/* 42 */     if (value.length() == 0) {
/* 43 */       return;
/*    */     }
/* 45 */     com.zimbra.cs.fb.WorkingHours.validateWorkingHoursPref(value);
/*    */   }
/*    */   
/*    */   public void postModify(CallbackContext context, String attrName, Entry entry) {}
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/callback/WorkingHours.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */